<%--
  Created by IntelliJ IDEA.
  User: 爱猫的鱼
  Date: 2016/6/13
  Time: 11:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="/static/themes/icon.css">
    <link type="text/css" rel="stylesheet" href="/static/themes/default/easyui.css">
    <script type="text/javascript" src="/static/jquery.min.js"></script>
    <script type="text/javascript" src="/static/jquery.easyui.min.js"></script>
</head>
<body>
<form id="exam-save" action="save.action" method="post">
    试题内容<input class="easyui-textbox" name="text"><br/>
    选项 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   <input class="easyui-textbox" name="option"><br/>
    正确答案<input class="easyui-textbox" name="name"><br/>
    试题解析<input class="easyui-textbox" name="name"><br/>
    出题人&nbsp;&nbsp;&nbsp;&nbsp;<input class="easyui-combobox" name="teacher.id" data-options="valueField:'id',textField:'name',url:'/teacher/teacherListAjax.action'" />
    <br />
    试题分类<input class="easyui-combobox" name="examinationClassify.id" data-options="valueField:'id',textField:'name',url:'/examinationClassify/examinationClassifyListAjax.action'" />


    <a id="exam-save-btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'">保存</a>
</form>
    <script type="text/javascript">
        $(function(){
            $('#exam-save').form({
                success:function(data){
                    alert(data);
                }
            });
            $('#exam-save-btn').click(function(){
                $('#exam-save').submit();
            })  ;

        })

    </script>

</body>
</html>
